<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perlreftut - Mark&#39;s very short tutorial about references - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perlreftut">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlreftut.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perlreftut">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perlreftut">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perlreftut">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perlreftut">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perlreftut">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perlreftut">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perlreftut">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perlreftut">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perlreftut">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perlreftut">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perlreftut">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perlreftut">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perlreftut">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perlreftut">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perlreftut">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perlreftut">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perlreftut">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perlreftut">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perlreftut">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perlreftut">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perlreftut">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perlreftut">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perlreftut">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perlreftut">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perlreftut">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perlreftut">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perlreftut">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perlreftut">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perlreftut">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perlreftut">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perlreftut">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perlreftut">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perlreftut">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perlreftut">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perlreftut">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perlreftut">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perlreftut">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perlreftut">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perlreftut">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perlreftut">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perlreftut">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perlreftut">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perlreftut">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perlreftut">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perlreftut">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perlreftut">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perlreftut">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perlreftut">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perlreftut">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perlreftut">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perlreftut">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perlreftut">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perlreftut">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perlreftut">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perlreftut">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perlreftut">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perlreftut">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perlreftut">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perlreftut">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perlreftut">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perlreftut">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perlreftut">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perlreftut">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perlreftut">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perlreftut">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perlreftut">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perlreftut">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perlreftut">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perlreftut">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perlreftut">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perlreftut">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perlreftut">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perlreftut">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perlreftut">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perlreftut">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perlreftut">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perlreftut">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perlreftut">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perlreftut">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perlreftut">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlreftut.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perlreftut">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perlreftut">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perlreftut">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perlreftut">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perlreftut">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perlreftut">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perlreftut">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perlreftut">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perlreftut">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perlreftut">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perlreftut">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perlreftut">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perlreftut">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perlreftut">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perlreftut">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perlreftut">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perlreftut">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perlreftut">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perlreftut">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perlreftut">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perlreftut">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perlreftut">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perlreftut">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perlreftut">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perlreftut">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perlreftut">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perlreftut">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perlreftut">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perlreftut">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perlreftut">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perlreftut">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perlreftut">5.35.1</a>
          <a class="dropdown-item active" href="perlreftut.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlreftut.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perlreftut.html">perlreftut</a>
          <div id="more">
            (<a href="perlreftut.txt">source</a>,
            <a href="https://metacpan.org/pod/perlreftut">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Who-Needs-Complicated-Data-Structures?">Who Needs Complicated Data Structures?</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#The-Solution">The Solution</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Syntax">Syntax</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Making-References">Making References</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Make-Rule-1">Make Rule 1</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Make-Rule-2">Make Rule 2</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Using-References">Using References</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Use-Rule-1">Use Rule 1</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Use-Rule-2">Use Rule 2</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#An-Example">An Example</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Arrow-Rule">Arrow Rule</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Solution">Solution</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#The-Rest">The Rest</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Summary">Summary</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Credits">Credits</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlreftut.html#Distribution-Conditions">Distribution Conditions</a>
              </li>
          </ul>

              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perlreftut.html#NAME">#</a>NAME</h1>

<p>perlreftut - Mark&#39;s very short tutorial about references</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perlreftut.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>One of the most important new features in Perl 5 was the capability to manage complicated data structures like multidimensional arrays and nested hashes. To enable these, Perl 5 introduced a feature called <i>references</i>, and using references is the key to managing complicated, structured data in Perl. Unfortunately, there&#39;s a lot of funny syntax to learn, and the main manual page can be hard to follow. The manual is quite complete, and sometimes people find that a problem, because it can be hard to tell what is important and what isn&#39;t.</p>

<p>Fortunately, you only need to know 10% of what&#39;s in the main page to get 90% of the benefit. This page will show you that 10%.</p>

<h1 id="Who-Needs-Complicated-Data-Structures?"><a class="permalink" href="perlreftut.html#Who-Needs-Complicated-Data-Structures?">#</a><a id="Who"></a><a id="Who-Needs-Complicated-Data-Structures"></a>Who Needs Complicated Data Structures?</h1>

<p>One problem that comes up all the time is needing a hash whose values are lists. Perl has hashes, of course, but the values have to be scalars; they can&#39;t be lists.</p>

<p>Why would you want a hash of lists? Let&#39;s take a simple example: You have a file of city and country names, like this:</p>

<pre><code class="plaintext">Chicago, USA
Frankfurt, Germany
Berlin, Germany
Washington, USA
Helsinki, Finland
New York, USA</code></pre>

<p>and you want to produce an output like this, with each country mentioned once, and then an alphabetical list of the cities in that country:</p>

<pre><code class="plaintext">Finland: Helsinki.
Germany: Berlin, Frankfurt.
USA:  Chicago, New York, Washington.</code></pre>

<p>The natural way to do this is to have a hash whose keys are country names. Associated with each country name key is a list of the cities in that country. Each time you read a line of input, split it into a country and a city, look up the list of cities already known to be in that country, and append the new city to the list. When you&#39;re done reading the input, iterate over the hash as usual, sorting each list of cities before you print it out.</p>

<p>If hash values couldn&#39;t be lists, you lose. You&#39;d probably have to combine all the cities into a single string somehow, and then when time came to write the output, you&#39;d have to break the string into a list, sort the list, and turn it back into a string. This is messy and error-prone. And it&#39;s frustrating, because Perl already has perfectly good lists that would solve the problem if only you could use them.</p>

<h1 id="The-Solution"><a class="permalink" href="perlreftut.html#The-Solution">#</a><a id="The"></a>The Solution</h1>

<p>By the time Perl 5 rolled around, we were already stuck with this design: Hash values must be scalars. The solution to this is references.</p>

<p>A reference is a scalar value that <i>refers to</i> an entire array or an entire hash (or to just about anything else). Names are one kind of reference that you&#39;re already familiar with. Each human being is a messy, inconvenient collection of cells. But to refer to a particular human, for instance the first computer programmer, it isn&#39;t necessary to describe each of their cells; all you need is the easy, convenient scalar string &quot;Ada Lovelace&quot;.</p>

<p>References in Perl are like names for arrays and hashes. They&#39;re Perl&#39;s private, internal names, so you can be sure they&#39;re unambiguous. Unlike a human name, a reference only refers to one thing, and you always know what it refers to. If you have a reference to an array, you can recover the entire array from it. If you have a reference to a hash, you can recover the entire hash. But the reference is still an easy, compact scalar value.</p>

<p>You can&#39;t have a hash whose values are arrays; hash values can only be scalars. We&#39;re stuck with that. But a single reference can refer to an entire array, and references are scalars, so you can have a hash of references to arrays, and it&#39;ll act a lot like a hash of arrays, and it&#39;ll be just as useful as a hash of arrays.</p>

<p>We&#39;ll come back to this city-country problem later, after we&#39;ve seen some syntax for managing references.</p>

<h1 id="Syntax"><a class="permalink" href="perlreftut.html#Syntax">#</a>Syntax</h1>

<p>There are just two ways to make a reference, and just two ways to use it once you have it.</p>

<h2 id="Making-References"><a class="permalink" href="perlreftut.html#Making-References">#</a><a id="Making"></a>Making References</h2>

<h3 id="Make-Rule-1"><a class="permalink" href="perlreftut.html#Make-Rule-1">#</a><a id="Make"></a><b>Make Rule 1</b></h3>

<p>If you put a <code>\</code> in front of a variable, you get a reference to that variable.</p>

<pre><code>$aref = \@array;         # $aref now holds a reference to @array
$href = \%hash;          # $href now holds a reference to %hash
$sref = \$scalar;        # $sref now holds a reference to $scalar</code></pre>

<p>Once the reference is stored in a variable like $aref or $href, you can copy it or store it just the same as any other scalar value:</p>

<pre><code>$xy = $aref;             # $xy now holds a reference to @array
$p[3] = $href;           # $p[3] now holds a reference to %hash
$z = $p[3];              # $z now holds a reference to %hash</code></pre>

<p>These examples show how to make references to variables with names. Sometimes you want to make an array or a hash that doesn&#39;t have a name. This is analogous to the way you like to be able to use the string <code>&quot;\n&quot;</code> or the number 80 without having to store it in a named variable first.</p>

<h3 id="Make-Rule-2"><a class="permalink" href="perlreftut.html#Make-Rule-2">#</a><a id="Make1"></a><b>Make Rule 2</b></h3>

<p><code>[ ITEMS ]</code> makes a new, anonymous array, and returns a reference to that array. <code>{ ITEMS }</code> makes a new, anonymous hash, and returns a reference to that hash.</p>

<pre><code>$aref = [ 1, &quot;foo&quot;, undef, 13 ];
# $aref now holds a reference to an array

$href = { APR =&gt; 4, AUG =&gt; 8 };
# $href now holds a reference to a hash</code></pre>

<p>The references you get from rule 2 are the same kind of references that you get from rule 1:</p>

<pre><code># This:
$aref = [ 1, 2, 3 ];

# Does the same as this:
@array = (1, 2, 3);
$aref = \@array;</code></pre>

<p>The first line is an abbreviation for the following two lines, except that it doesn&#39;t create the superfluous array variable <code>@array</code>.</p>

<p>If you write just <code>[]</code>, you get a new, empty anonymous array. If you write just <code>{}</code>, you get a new, empty anonymous hash.</p>

<h2 id="Using-References"><a class="permalink" href="perlreftut.html#Using-References">#</a><a id="Using"></a>Using References</h2>

<p>What can you do with a reference once you have it? It&#39;s a scalar value, and we&#39;ve seen that you can store it as a scalar and get it back again just like any scalar. There are just two more ways to use it:</p>

<h3 id="Use-Rule-1"><a class="permalink" href="perlreftut.html#Use-Rule-1">#</a><a id="Use"></a><b>Use Rule 1</b></h3>

<p>You can always use an array reference, in curly braces, in place of the name of an array. For example, <code>@{$aref}</code> instead of <code>@array</code>.</p>

<p>Here are some examples of that:</p>

<p>Arrays:</p>

<pre><code>@a		@{$aref}		An array
reverse @a	reverse @{$aref}	Reverse the array
$a[3]		${$aref}[3]		An element of the array
$a[3] = 17;	${$aref}[3] = 17	Assigning an element</code></pre>

<p>On each line are two expressions that do the same thing. The left-hand versions operate on the array <code>@a</code>. The right-hand versions operate on the array that is referred to by <code>$aref</code>. Once they find the array they&#39;re operating on, both versions do the same things to the arrays.</p>

<p>Using a hash reference is <i>exactly</i> the same:</p>

<pre><code>%h		%{$href}	      A hash
keys %h		keys %{$href}	      Get the keys from the hash
$h{&#39;red&#39;}	${$href}{&#39;red&#39;}	      An element of the hash
$h{&#39;red&#39;} = 17	${$href}{&#39;red&#39;} = 17  Assigning an element</code></pre>

<p>Whatever you want to do with a reference, <b>Use Rule 1</b> tells you how to do it. You just write the Perl code that you would have written for doing the same thing to a regular array or hash, and then replace the array or hash name with <code>{$reference}</code>. &quot;How do I loop over an array when all I have is a reference?&quot; Well, to loop over an array, you would write</p>

<pre><code>for my $element (@array) {
  ...
}</code></pre>

<p>so replace the array name, <code>@array</code>, with the reference:</p>

<pre><code>for my $element (@{$aref}) {
  ...
}</code></pre>

<p>&quot;How do I print out the contents of a hash when all I have is a reference?&quot; First write the code for printing out a hash:</p>

<pre><code>for my $key (keys %hash) {
  print &quot;$key =&gt; $hash{$key}\n&quot;;
}</code></pre>

<p>And then replace the hash name with the reference:</p>

<pre><code>for my $key (keys %{$href}) {
  print &quot;$key =&gt; ${$href}{$key}\n&quot;;
}</code></pre>

<h3 id="Use-Rule-2"><a class="permalink" href="perlreftut.html#Use-Rule-2">#</a><a id="Use1"></a><b>Use Rule 2</b></h3>

<p><a href="perlreftut.html#Use-Rule-1"><b>Use Rule 1</b></a> is all you really need, because it tells you how to do absolutely everything you ever need to do with references. But the most common thing to do with an array or a hash is to extract a single element, and the <a href="perlreftut.html#Use-Rule-1"><b>Use Rule 1</b></a> notation is cumbersome. So there is an abbreviation.</p>

<p><code>${$aref}[3]</code> is too hard to read, so you can write <code>$aref-&gt;[3]</code> instead.</p>

<p><code>${$href}{red}</code> is too hard to read, so you can write <code>$href-&gt;{red}</code> instead.</p>

<p>If <code>$aref</code> holds a reference to an array, then <code>$aref-&gt;[3]</code> is the fourth element of the array. Don&#39;t confuse this with <code>$aref[3]</code>, which is the fourth element of a totally different array, one deceptively named <code>@aref</code>. <code>$aref</code> and <code>@aref</code> are unrelated the same way that <code>$item</code> and <code>@item</code> are.</p>

<p>Similarly, <code>$href-&gt;{&#39;red&#39;}</code> is part of the hash referred to by the scalar variable <code>$href</code>, perhaps even one with no name. <code>$href{&#39;red&#39;}</code> is part of the deceptively named <code>%href</code> hash. It&#39;s easy to forget to leave out the <code>-&gt;</code>, and if you do, you&#39;ll get bizarre results when your program gets array and hash elements out of totally unexpected hashes and arrays that weren&#39;t the ones you wanted to use.</p>

<h2 id="An-Example"><a class="permalink" href="perlreftut.html#An-Example">#</a><a id="An"></a>An Example</h2>

<p>Let&#39;s see a quick example of how all this is useful.</p>

<p>First, remember that <code>[1, 2, 3]</code> makes an anonymous array containing <code>(1, 2, 3)</code>, and gives you a reference to that array.</p>

<p>Now think about</p>

<pre><code>	@a = ( [1, 2, 3],
               [4, 5, 6],
	       [7, 8, 9]
             );</code></pre>

<p><code>@a</code> is an array with three elements, and each one is a reference to another array.</p>

<p><code>$a[1]</code> is one of these references. It refers to an array, the array containing <code>(4, 5, 6)</code>, and because it is a reference to an array, <a href="perlreftut.html#Use-Rule-2"><b>Use Rule 2</b></a> says that we can write <code>$a[1]-&gt;[2]</code> to get the third element from that array. <code>$a[1]-&gt;[2]</code> is the 6. Similarly, <code>$a[0]-&gt;[1]</code> is the 2. What we have here is like a two-dimensional array; you can write <code>$a[ROW]-&gt;[COLUMN]</code> to get or set the element in any row and any column of the array.</p>

<p>The notation still looks a little cumbersome, so there&#39;s one more abbreviation:</p>

<h2 id="Arrow-Rule"><a class="permalink" href="perlreftut.html#Arrow-Rule">#</a><a id="Arrow"></a>Arrow Rule</h2>

<p>In between two <b>subscripts</b>, the arrow is optional.</p>

<p>Instead of <code>$a[1]-&gt;[2]</code>, we can write <code>$a[1][2]</code>; it means the same thing. Instead of <code>$a[0]-&gt;[1] = 23</code>, we can write <code>$a[0][1] = 23</code>; it means the same thing.</p>

<p>Now it really looks like two-dimensional arrays!</p>

<p>You can see why the arrows are important. Without them, we would have had to write <code>${$a[1]}[2]</code> instead of <code>$a[1][2]</code>. For three-dimensional arrays, they let us write <code>$x[2][3][5]</code> instead of the unreadable <code>${${$x[2]}[3]}[5]</code>.</p>

<h1 id="Solution"><a class="permalink" href="perlreftut.html#Solution">#</a>Solution</h1>

<p>Here&#39;s the answer to the problem I posed earlier, of reformatting a file of city and country names.</p>

<pre><code> 1   my %table;

 2   while (&lt;&gt;) {
 3     chomp;
 4     my ($city, $country) = split /, /;
 5     $table{$country} = [] unless exists $table{$country};
 6     push @{$table{$country}}, $city;
 7   }

 8   for my $country (sort keys %table) {
 9     print &quot;$country: &quot;;
10     my @cities = @{$table{$country}};
11     print join &#39;, &#39;, sort @cities;
12     print &quot;.\n&quot;;
13	}</code></pre>

<p>The program has two pieces: Lines 2-7 read the input and build a data structure, and lines 8-13 analyze the data and print out the report. We&#39;re going to have a hash, <code>%table</code>, whose keys are country names, and whose values are references to arrays of city names. The data structure will look like this:</p>

<pre><code>   %table
+-------+---+
|       |   |   +-----------+--------+
|Germany| *----&gt;| Frankfurt | Berlin |
|       |   |   +-----------+--------+
+-------+---+
|       |   |   +----------+
|Finland| *----&gt;| Helsinki |
|       |   |   +----------+
+-------+---+
|       |   |   +---------+------------+----------+
|  USA  | *----&gt;| Chicago | Washington | New York |
|       |   |   +---------+------------+----------+
+-------+---+</code></pre>

<p>We&#39;ll look at output first. Supposing we already have this structure, how do we print it out?</p>

<pre><code> 8   for my $country (sort keys %table) {
 9     print &quot;$country: &quot;;
10     my @cities = @{$table{$country}};
11     print join &#39;, &#39;, sort @cities;
12     print &quot;.\n&quot;;
13	}</code></pre>

<p><code>%table</code> is an ordinary hash, and we get a list of keys from it, sort the keys, and loop over the keys as usual. The only use of references is in line 10. <code>$table{$country}</code> looks up the key <code>$country</code> in the hash and gets the value, which is a reference to an array of cities in that country. <a href="perlreftut.html#Use-Rule-1"><b>Use Rule 1</b></a> says that we can recover the array by saying <code>@{$table{$country}}</code>. Line 10 is just like</p>

<pre><code>@cities = @array;</code></pre>

<p>except that the name <code>array</code> has been replaced by the reference <code>{$table{$country}}</code>. The <code>@</code> tells Perl to get the entire array. Having gotten the list of cities, we sort it, join it, and print it out as usual.</p>

<p>Lines 2-7 are responsible for building the structure in the first place. Here they are again:</p>

<pre><code>2   while (&lt;&gt;) {
3     chomp;
4     my ($city, $country) = split /, /;
5     $table{$country} = [] unless exists $table{$country};
6     push @{$table{$country}}, $city;
7   }</code></pre>

<p>Lines 2-4 acquire a city and country name. Line 5 looks to see if the country is already present as a key in the hash. If it&#39;s not, the program uses the <code>[]</code> notation (<a href="perlreftut.html#Make-Rule-2"><b>Make Rule 2</b></a>) to manufacture a new, empty anonymous array of cities, and installs a reference to it into the hash under the appropriate key.</p>

<p>Line 6 installs the city name into the appropriate array. <code>$table{$country}</code> now holds a reference to the array of cities seen in that country so far. Line 6 is exactly like</p>

<pre><code>push @array, $city;</code></pre>

<p>except that the name <code>array</code> has been replaced by the reference <code>{$table{$country}}</code>. The <a href="perlfunc.html#push-ARRAY%2CLIST"><code>push</code></a> adds a city name to the end of the referred-to array.</p>

<p>There&#39;s one fine point I skipped. Line 5 is unnecessary, and we can get rid of it.</p>

<pre><code>2   while (&lt;&gt;) {
3     chomp;
4     my ($city, $country) = split /, /;
5   ####  $table{$country} = [] unless exists $table{$country};
6     push @{$table{$country}}, $city;
7   }</code></pre>

<p>If there&#39;s already an entry in <code>%table</code> for the current <code>$country</code>, then nothing is different. Line 6 will locate the value in <code>$table{$country}</code>, which is a reference to an array, and push <code>$city</code> into the array. But what does it do when <code>$country</code> holds a key, say <code>Greece</code>, that is not yet in <code>%table</code>?</p>

<p>This is Perl, so it does the exact right thing. It sees that you want to push <code>Athens</code> onto an array that doesn&#39;t exist, so it helpfully makes a new, empty, anonymous array for you, installs it into <code>%table</code>, and then pushes <code>Athens</code> onto it. This is called <i>autovivification</i>--bringing things to life automatically. Perl saw that the key wasn&#39;t in the hash, so it created a new hash entry automatically. Perl saw that you wanted to use the hash value as an array, so it created a new empty array and installed a reference to it in the hash automatically. And as usual, Perl made the array one element longer to hold the new city name.</p>

<h1 id="The-Rest"><a class="permalink" href="perlreftut.html#The-Rest">#</a><a id="The1"></a>The Rest</h1>

<p>I promised to give you 90% of the benefit with 10% of the details, and that means I left out 90% of the details. Now that you have an overview of the important parts, it should be easier to read the <a href="perlref.html">perlref</a> manual page, which discusses 100% of the details.</p>

<p>Some of the highlights of <a href="perlref.html">perlref</a>:</p>

<ul>

<li><p>You can make references to anything, including scalars, functions, and other references.</p>

</li>
<li><p>In <a href="perlreftut.html#Use-Rule-1"><b>Use Rule 1</b></a>, you can omit the curly brackets whenever the thing inside them is an atomic scalar variable like <code>$aref</code>. For example, <code>@$aref</code> is the same as <code>@{$aref}</code>, and <code>$$aref[1]</code> is the same as <code>${$aref}[1]</code>. If you&#39;re just starting out, you may want to adopt the habit of always including the curly brackets.</p>

</li>
<li><p>This doesn&#39;t copy the underlying array:</p>

<pre><code>$aref2 = $aref1;</code></pre>

<p>You get two references to the same array. If you modify <code>$aref1-&gt;[23]</code> and then look at <code>$aref2-&gt;[23]</code> you&#39;ll see the change.</p>

<p>To copy the array, use</p>

<pre><code>$aref2 = [@{$aref1}];</code></pre>

<p>This uses <code>[...]</code> notation to create a new anonymous array, and <code>$aref2</code> is assigned a reference to the new array. The new array is initialized with the contents of the array referred to by <code>$aref1</code>.</p>

<p>Similarly, to copy an anonymous hash, you can use</p>

<pre><code>$href2 = {%{$href1}};</code></pre>

</li>
<li><p>To see if a variable contains a reference, use the <a href="perlfunc.html#ref-EXPR"><code>ref</code></a> function. It returns true if its argument is a reference. Actually it&#39;s a little better than that: It returns <code>HASH</code> for hash references and <code>ARRAY</code> for array references.</p>

</li>
<li><p>If you try to use a reference like a string, you get strings like</p>

<pre><code class="plaintext">ARRAY(0x80f5dec)   or    HASH(0x826afc0)</code></pre>

<p>If you ever see a string that looks like this, you&#39;ll know you printed out a reference by mistake.</p>

<p>A side effect of this representation is that you can use <a href="perlop.html#Equality-Operators"><code>eq</code></a> to see if two references refer to the same thing. (But you should usually use <a href="perlop.html#Equality-Operators"><code>==</code></a> instead because it&#39;s much faster.)</p>

</li>
<li><p>You can use a string as if it were a reference. If you use the string <code>&quot;foo&quot;</code> as an array reference, it&#39;s taken to be a reference to the array <code>@foo</code>. This is called a <i>symbolic reference</i>. The declaration <a href="strict.html"><code>use strict &#39;refs&#39;</code></a> disables this feature, which can cause all sorts of trouble if you use it by accident.</p>

</li>
</ul>

<p>You might prefer to go on to <a href="perllol.html">perllol</a> instead of <a href="perlref.html">perlref</a>; it discusses lists of lists and multidimensional arrays in detail. After that, you should move on to <a href="perldsc.html">perldsc</a>; it&#39;s a Data Structure Cookbook that shows recipes for using and printing out arrays of hashes, hashes of arrays, and other kinds of data.</p>

<h1 id="Summary"><a class="permalink" href="perlreftut.html#Summary">#</a>Summary</h1>

<p>Everyone needs compound data structures, and in Perl the way you get them is with references. There are four important rules for managing references: Two for making references and two for using them. Once you know these rules you can do most of the important things you need to do with references.</p>

<h1 id="Credits"><a class="permalink" href="perlreftut.html#Credits">#</a>Credits</h1>

<p>Author: Mark Jason Dominus, Plover Systems (<code>mjd-perl-ref+@plover.com</code>)</p>

<p>This article originally appeared in <i>The Perl Journal</i> ( <a href="http://www.tpj.com/">http://www.tpj.com/</a> ) volume 3, #2. Reprinted with permission.</p>

<p>The original title was <i>Understand References Today</i>.</p>

<h2 id="Distribution-Conditions"><a class="permalink" href="perlreftut.html#Distribution-Conditions">#</a><a id="Distribution"></a>Distribution Conditions</h2>

<p>Copyright 1998 The Perl Journal.</p>

<p>This documentation is free; you can redistribute it and/or modify it under the same terms as Perl itself.</p>

<p>Irrespective of its distribution, all code examples in these files are hereby placed into the public domain. You are permitted and encouraged to use this code in your own programs for fun or for profit as you see fit. A simple comment in the code giving credit would be courteous but is not required.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
